﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopVisionVideoStream.Mananger
{
    public class ViewManager
    {
        public ViewManager(int localHwnd, int remoteHwnd)
        {
            var ret = OcxApi.SetLocalVideoHWnd(localHwnd) & OcxApi.SetRemoteVideoHWnd(remoteHwnd);
            if (!ret)
            {
                throw new Exception("Set Video Hwnd err.");
            }
        }
    }
}
